package zozopo.manual;

import zozopo.manual.operations.ContentOS;
import zozopo.manual.operations.ContentTB;

import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;

public class ContentAction extends ActionSupport implements Action {
	
	//输入
	private int id;
	
	//输出
	ContentTB content;
	
	public String execute(){
		ContentOS contentOS = new ContentOS();
		try{
			content = contentOS.get(id); 
		}finally{
			contentOS.releaseConnection(); 
		}
		
		
		return SUCCESS;
	}
	

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public ContentTB getContent() {
		return content;
	}

	public void setContent(ContentTB content) {
		this.content = content;
	}
	
	
	
}
